package com.ningxun.pagent.bus.domain.vo;

import java.util.Date;
import com.ningxun.pagent.bus.domain.BusPolicyContent;
import com.ningxun.pagent.common.utils.bean.BeanUtils;
import com.ningxun.pagent.common.annotation.Excel;


/**
 * 政策内容对象 bus_policy_content
 *
 * @author pagent
 * @date 2025-07-10
 */
public class WechatPolicyContentDetailVo {

    /** 主键id */
    private Long policyId;

    /** 政策标题 */
    private String title;

    /** 政策内容 富文本 */
    private String content;

    /** 失效时间 */
    private Date expirationTime;

    /** 失效状态：1）正常 0）过期或删除 */
    @Excel(name = "失效状态", dictType = "bus_invalid_state")
    private Long invalidState;

    /** 政策类型  若依字典 */
    private Long policyType;

    /** 1未审核 0已通过 2驳回 */
    private Long approveStatus;

    public void setPolicyId(Long policyId)
    {
        this.policyId = policyId;
    }

    public Long getPolicyId()
    {
        return policyId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent()
    {
        return content;
    }

    public void setExpirationTime(Date expirationTime)
    {
        this.expirationTime = expirationTime;
    }

    public Date getExpirationTime()
    {
        return expirationTime;
    }

    public void setInvalidState(Long invalidState)
    {
        this.invalidState = invalidState;
    }

    public Long getInvalidState()
    {
        return invalidState;
    }

    public void setPolicyType(Long policyType)
    {
        this.policyType = policyType;
    }

    public Long getPolicyType()
    {
        return policyType;
    }

    public void setApproveStatus(Long approveStatus)
    {
        this.approveStatus = approveStatus;
    }

    public Long getApproveStatus()
    {
        return approveStatus;
    }

//    @Override
//    public String toString() {
//        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
//                .append("policyId", getPolicyId())
//                .append("title", getTitle())
//                .append("content", getContent())
//                .append("expirationTime", getExpirationTime())
//                .append("invalidState", getInvalidState())
//                .append("policyType", getPolicyType())
//                .append("approveStatus", getApproveStatus())
//                .toString();
//    }
    public static WechatPolicyContentDetailVo convertToWechatPolicyContentVo(BusPolicyContent item) {
        WechatPolicyContentDetailVo vo = new WechatPolicyContentDetailVo();
        BeanUtils.copyBeanProp(vo, item);
        return vo;
    }
}
